package com.mxf.code.service.impl;

import com.mxf.code.mapper.PermissionDao;
import com.mxf.code.pojo.vo.PermissionVO;
import com.mxf.code.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : [mxf]
 * @version : [v1.0]
 * @className : PermissionServiceImpl
 * @description : [描述说明该类的功能]
 * @createTime : [2022/9/5 16:20]
 * @updateUser : [mxf]
 * @updateTime : [2022/9/5 16:20]
 * @updateRemark : [描述说明本次修改内容]
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Resource
    private PermissionDao permissionDao;

    @Override
    public List<PermissionVO> listPermissionsByUserId(Long userId) {
        return permissionDao.listPermissionsByUserId(userId);
    }
}
